updating oE from_unix

from_unix

include datetime.e -- (default namespace is datetime) 
public function from_unix(atom unix) 

Creates a datetime value from the Unix numeric format (seconds since EPOCH).

Parameters:
  1. unix : an atom, counting seconds elapsed since EPOCH.
Returns:

A sequence, more precisely a datetime representing the same moment in time.

Example 1:
include std/datetime.e 
 
datetime d = from_unix(0) -- zero seconds since EPOCH 
? d 
Results:

{1970,1,1,0,0,0}

See Also:

to_unix, from_date, now, new

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu